package com.xxh.dasongapp.common.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xxh.dasongapp.common.entity.common.BaseEntity;
import com.xxh.dasongapp.common.validgroup.Insert;
import com.xxh.dasongapp.common.validgroup.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="网站参数",description="网站参数")
public class WebsitePARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "网站id")
    private String id;

    @NotEmpty(message = "网站名不能为空",groups = Insert.class)
    @ApiModelProperty(value = "网站名")
    private String name;

    @NotEmpty(message = "网站类型不能为空",groups = Insert.class)
    @ApiModelProperty(value = "网站类型")
    private String type;

    @NotEmpty(message = "网站地址不能为空",groups = Insert.class)
    @ApiModelProperty(value = "网站地址")
    private String url;

    @NotEmpty(message = "网站介绍不能为空",groups = Insert.class)
    @ApiModelProperty(value = "网站介绍")
    private String introduce;

    @NotEmpty(message = "网站照片不能为空",groups = Insert.class)
    @ApiModelProperty(value = "网站照片名")
    private String imgFile;

    @NotNull(message = "是否隐藏不能为空",groups = Insert.class)
    @ApiModelProperty(value = "1：隐藏,0:不隐藏")
    private Integer isHide;


}
